package com.gxy.learn.backup.mapper.primary;


import com.gxy.learn.backup.entity.primary.ConsumptionPrimary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author gxy
 */
@Mapper
public interface ConsumptionPrimaryMapper {
    ConsumptionPrimary findByTenantNoAndId(@Param("id") Long id, @Param("tenantNo") String tenantNo);

    @Transactional(rollbackFor = Exception.class)
    int batchInsert(@Param("list") List<ConsumptionPrimary> list, @Param("tenantNo") String tenantNo);
}
